package cj.hrm.dao;


import cj.hrm.entity.RecruitmentStatus;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import static cj.hrm.util.common.HrmConstants.RECRUITMENTSTATUSTABLE;

public interface RecruitmentStatusDao {
	//查询
	@Select("select * from "+RECRUITMENTSTATUSTABLE+" ")
	List<RecruitmentStatus> selectAllRecruitmentStatus();
	
	@Select("select * from "+RECRUITMENTSTATUSTABLE+" where name like CONCAT('%',#{content},'%')")
	List<RecruitmentStatus> selectLikeAllRecruitmentStatus(String content);

	@Select("select * from "+RECRUITMENTSTATUSTABLE+" where id = #{id}")
	RecruitmentStatus selectById(Integer id);
}
